<template>
  <div id="app">
    <!--<v-main-page/>-->
    <router-view />
  </div>
</template>

<script>
  /**
   * 1. 引入组件
   * 2. 挂载组件
   * 3. 在模板中使用组件
   */
  import main_page from './components/MainPage'

  export default {
    name: 'App',
    data() {
      return {
        msg: "this is a test!"
      }
    },
    components: {'v-main-page': main_page}
  }
</script>


<style>
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /*text-align: center;*/
    color: #2c3e50;
    margin-top: 0px;
    padding: 0px;
    /*border: 1px solid red;*/
  }
</style>
